package unidirectional.join.manytoone;

import org.apache.commons.lang.builder.ToStringBuilder;

public class PersonUnidirectionalJoinManytoone {
	private Long id;
	private String name;
	private AddressUnidirectionalJoinManytoone address;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public AddressUnidirectionalJoinManytoone getAddress() {
		return address;
	}
	public void setAddress(AddressUnidirectionalJoinManytoone address) {
		this.address = address;
	}
	
	@Override
	 public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
